<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var str = 'fdsaf3432fda342fa34234fa324343'
      // [3432,342,34234,324343]
      new_str = ''
     let arr = []
      for (let i = 0; i <str.length; i++) {
        if (!isNaN(str[i])) {
            if(isNaN(str[i-1])&&new_str){
                arr.push(new_str)
                new_str=''
            }
          new_str += str[i]
        }
        
      }
      arr.push(new_str)
      console.log(arr);
      var str = 'fdsaf3432fda342fa34234fa324343'
      var reg = /\d+/g
    var arr1 = str.match(reg)
    console.log(arr1);
    </script>
    
  </body>
</html>
